﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LocalHeader.ascx.cs"
    Inherits="BaoJian.Control.LocalHeader" %>
<link type="text/css" href="../Style/zb_top.css" rel="stylesheet" />
<link type="text/css" href="../Js/jquery/plugins/jquery.autocomplete.css" rel="stylesheet" />
<script type="text/javascript" src="../Js/jquery/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="../Js/jquery/plugins/jquery.autocomplete.js"></script>
<script type="text/javascript" src="../Js/jquery/plugins/jquery.flash.js"></script>

<script type="text/javascript">
    function findValue(li)
     {
	    if( li == null )  return "";
	    if( !!li.extra ) var sValue = li.extra[0];
	    else var sValue = li.selectValue;	 
	    return sValue;  
	  }
    function selectItem(li) {
        findValue(li);
    }
    function formatItem(row) {
	    return row[0] ;
    }
    function lookupAjax(){      
       var sValue = $("#keywords").val();   
       if(sValue == null || sValue == "")
	     return false;  
	   window.open("/searchresult.aspx?skey="+sValue,"","");   
       return false;
    }
    
    function GoSearch()
    {
       if (event.keyCode == 13)
       { 
          event.returnValue=false;
          event.cancel = true;
          var sValue = $("#keywords").val();
          if(sValue == null || sValue == "")
	         return false;
          window.open("/searchresult.aspx?skey="+sValue,"","");  
        }
        else
            return false;  
    }
	$(document).ready(function() {	 
	$("#keywords").autocomplete(
		"/ajax/SearchKeyWord.ashx",
		{			
			delay:10,
			minChars:1,
			matchSubset:1,
			matchContains:1,
			cacheLength:10,
			onItemSelect:selectItem,
			onFindValue:findValue,
			formatItem:formatItem,
			autoFill:true,
			selectFirst:true	
		}
	); 
	
	 //superline open searchPage
	 $("#HotKey").find("a").each(function(){
	   $(this).bind("click",function(){ 
	       window.open("/searchresult.aspx?skey="+$(this).text(),"","");   
	      })
	  });
	
    });

</script>

<script type="text/javascript">
    //显示与隐藏列表
    function showList(id,num){
	    if(num == 1){
		    document.getElementById(id).style.display = "block";
	    }
	    else{
		    document.getElementById(id).style.display = "none";
	    }
    }
    //选项卡切换
    function showTab(n1,n2){
	    var h=document.getElementById("tab"+n1).getElementsByTagName("h3");
	    var d=document.getElementById("tab"+n1).getElementsByTagName("div");
	    for(var i=0;i<h.length;i++){
		    if(n2-1==i){
			    h[i].className+=" up";
			    d[i].className+=" block";
		    }
		    else {
			    h[i].className=" ";
			    d[i].className=" ";
		    }
	    }
    }
</script>

<div class="top">
    <div class="community">
        <a href="#">携手昭光 快乐健康</a>
    </div>
    <div class="login">
        <a class="l1" href="/login.aspx" title="用户登录">用户登录</a> <a class="l2" title="新用户注册" href="/e/mn/register.aspx">新用户注册</a>
    </div>
    <div class="region">
        城市分站：<a target="_blank" href="/tianjin/default.aspx">天津</a> | <a target="_blank" href="/zhuhai/default.aspx">珠海</a>|
        <a target="_blank" href="/zhengzhou/default.aspx">郑州</a>| <a target="_blank" href="/wuxi/default.aspx">无锡</a>| <a target="_blank" href="/haerbin/default.aspx">
            哈尔滨</a>&nbsp;&nbsp;&nbsp;&nbsp;<a target="_blank" href="/info/join.aspx">更多</a>
    </div>
    <ul id="about">
        <li>
            <img height="13" onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.hongzhaoguang.com');"
                width="13" src="../images/home.gif" alt="设为首页" />
            <span style="" onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.hongzhaoguang.com');">
                设为首页</span></li>
        <li>
            <img height="13" width="13" onclick="window.external.addFavorite('http://www.hongzhaoguang.com','昭光健康网')"
                src="../images/fldr.gif" alt="加入收藏" />
            <span title="昭光健康网" onclick="window.external.addFavorite('http://www.hongzhaoguang.com','昭光健康网')"
                style="">收藏本站</span> </li>
    </ul>
</div>
<div class="logosearch">
    <div class="logo">
        <a href="/default.aspx" title="昭光健康网">
            <img src="../images/logo.gif" alt="昭光健康网" /></a>
    </div>
    <div class="plat">
        <a target="_blank" href="/p/default.aspx" title="健康品互换平台">
            <img src="../images/plat_bg.gif" alt="健康品互换平台" />
        </a>
    </div>
    <div class="s_c">
        <a title="商城" href="#" target="_blank">
            <img height="66" alt="商城" border="0" width="65" src="../images/shangcheng.gif" /></a>
    </div>
    <div class="j_t">
        <a title="讲堂" href="#" target="_blank">
            <img alt="讲堂" height="66" border="0" width="65" src="../images/j_t_bg.gif" /></a>
    </div>
    <div class="join">
        <a title="加盟" href="/info/join.aspx" target="_blank">
            <img height="66" alt="加盟" border="0" width="65" src="../images/join_bg.gif" /></a>
    </div>
    <div class="database">
        <a title="健康资料库" href="#" target="_blank">
            <img height="66" alt="健康资料库" border="0" width="65" src="../images/database_bg.gif" /></a>
    </div>
    <div class="searchBox">
        <input type="text" id="keywords" onkeydown="GoSearch()" name="keywords" value="" />
        <input type="button" id="searchBtn" onclick="lookupAjax();" name="searchBtn" style="width: 40px;
            height: 24px" value="搜索" />
        <span><a href="#">高级搜索</a></span>
        <div id="HotKey" class="hotKey">
            <h6>
                热门搜索：</h6>
            <ul class="hot_text">
                <li><a href="#">慢性胃炎</a></li>
                <li><a href="#">发热</a></li>
                <li><a href="#">咳嗽</a></li>
                <li><a href="#">肾病</a></li>
                <li><a href="#">眼病</a></li>
                <li><a href="#">骨关节</a></li>
                <li><a href="#">两性</a></li>
                <li><a href="#">失眠</a></li>
                <li><a href="#">……</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="nav">
    <ul class="home">
        <li class="h"><a class="head" title="首页" href="/default.aspx">首页</a></li>
    </ul>
    <ul class="news">
        <li class="h"><a class="head" title="快讯" href="#">快讯</a></li>
        <li><a href="col.aspx?p=6dec655a-4683-4bc8-b23b-c7e9d2564cb9">热点</a></li>
        <li><a href="#">专题</a></li>
    </ul>
    <ul class="fashion">
        <li class="h"><a class="head" title="时尚" href="#">时尚</a></li>
        <li><a href="col.aspx?p=DBE2BE2F-5794-486E-B855-FA1AD3190A1B">两性</a></li>
        <li><a href="col.aspx?p=adc04be5-481e-4b28-962b-256c08f6d0d8">健身</a></li>
        <li><a href="col.aspx?p=f5ab5268-7006-46bf-bbd9-646387882ffb">增肥</a></li>
        <li><a href="col.aspx?p=7be6444b-c583-4b4a-9cd9-d064124e3071 ">心理</a></li>
        <li><a href="col.aspx?p=ce2bf645-3c30-4de1-9c72-fbf96351b6df ">美容</a></li>
        <li><a href="col.aspx?p=e4d7d6c7-ba19-4215-8fae-b16973fb8676 ">减肥</a></li>
    </ul>
    <ul class="health">
        <li class="h"><a class="head" title="保健" href="#">保健</a></li>
        <li><a href="col.aspx?p=06a37a5d-5446-4eac-b3ba-b0fb0eed2a68">男性</a></li>
        <li><a href="col.aspx?p=64cac01c-33ca-407f-8b57-19f20a029b51">老人</a></li>
        <li><a href="col.aspx?p=9ebc278d-c20e-4fa5-9521-6f1d8a178d95">女性</a></li>
        <li><a href="col.aspx?p=065ab7cc-c6c3-4178-99a4-4dda571befd2 ">婴幼</a></li>
    </ul>
    <ul class="yangsheng">
        <li class="h"><a class="head" title="养生" href="#">养生</a></li>
        <li><a href="col.aspx?p=9b02bbf2-2ec1-46ef-a8eb-d9403960ce97">中医</a></li>
        <li><a href="col.aspx?p=f2ebdfda-34e0-465d-8ab2-001a918c40b7">四季</a></li>
        <li><a href="col.aspx?p=ee542f29-1dfb-49b7-a042-ba05ae74eb42">食疗</a></li>
        <li><a href="col.aspx?p=be538dd1-5e71-4272-83a7-2b7c2e26a22e">名家</a></li>
    </ul>
    <ul class="hudong">
        <li class="h"><a class="head" title="互动" href="#">互动</a></li>
        <li><a href="#">论坛</a></li>
        <li><a href="#">自测</a></li>
        <li><a href="#">博客</a></li>
        <li><a href="#">地图</a></li>
    </ul>
    <ul class="redian">
        <li class="h"><a class="head" title="热点" href="col.aspx?p=">热点</a></li>
        <li><a href="col.aspx?p=55e7656b-4266-4a60-a61e-c7ae0d535b98">健康误区</a></li>
        <li><a href="col.aspx?p=3e25d5dd-bdcf-4104-91e3-24572f69f099">慢生活</a></li>
        <li><a href="col.aspx?p=13e38a71-fe23-4249-a130-3eed82d3d7c1">亚健康</a></li>
        <li><a href="col.aspx?p=a3aa7883-5c2b-4a92-9503-07a0158dff9b">首席专家</a></li>
          <li><a href="http://www.sda.gov.cn" target="_blank">查询真伪</a></li>
        <li><a href="col.aspx?p=6E8B300F-1676-4165-BB39-8B5D6406B0B3">急救常识</a></li>
        <li><a href="col.aspx?p=bc41fa34-81e6-4ac8-92e6-9d1e857df71d">咨询台</a></li>
        <li><a href="col.aspx?p=4edbc102-b79a-41e8-8cb8-188f65dca738">曝光台</a></li>
        <li><a href="col.aspx?p=d2dfaaa8-da83-4089-8cdb-294d55e4a9c6">健康视频</a></li>
        <li><a href="col.aspx?p=253b4752-cf2e-44dd-86bf-3072040297e6">E D专区</a></li>
    </ul>
</div>

